package com.design.state;

public class StateMain {
    public static void main(String[] args) {
        EventStateContext eventStateContext = new EventStateContext();
        eventStateContext.getState().run();
        eventStateContext.getState().acton("Running", eventStateContext);

        eventStateContext.getState().run();
        eventStateContext.getState().acton("Dead", eventStateContext);

        eventStateContext.getState().run();

    }
}
